<template>
  <div id="header">
    <el-row>
      <el-col :span="24"><div class="grid-content bg-purple-dark">123123123123</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="12"><div class="grid-content bg-purple">123</div></el-col>
      <el-col :span="12"><div class="grid-content bg-purple-light">123</div></el-col>
    </el-row>
    <div class="header">
      这是头部
      <button @click="changeMenu">变化菜单</button>
    </div>
  </div>
</template>

<script>
  import VueEvent from '../utils/vue/vue-util';

  export default {
    methods: {
      changeMenu() {
        VueEvent.$emit('change-menu', [
          {id: '111', menu: 'xxxx1'},
          {id: '222', menu: 'xxxx2'},
          {id: '333', menu: 'xxxx3'}
          ]);
      }
    }
  }
</script>

<style scoped>
  .header {
    width: 100%;
    height: 100px;
    background-color: aquamarine;
    color: black;
    text-align: center;
    line-height: 100px;
  }
</style>
